#ifndef _COS_TYPE_H
#define _COS_TYPE_H

#include <sys/types.h>

#define S8INT_MIN (0x80)
#define S16INT_MIN (0x8000)
#define S32INT_MIN (0x80000000)
#define S64INT_MIN (0x8000000000000000)

#define U8INT_MIN (0x0)
#define U16INT_MIN (0x0)
#define U32INT_MIN (0x0)
#define U64INT_MIN (0x0)

#define S8INT_MAX (0x7F)
#define S16INT_MAX (0x7FFF)
#define S32INT_MAX (0x7FFFFFFF)
#define S64INT_MAX (0x7FFFFFFFFFFFFFFF)

#define U8INT_MAX (0xFF)
#define U16INT_MAX (0xFFFF)
#define U32INT_MAX (0xFFFFFFFF)
#define U64INT_MAX (0xFFFFFFFFFFFFFFFF)

typedef char s8int;
typedef unsigned char u8int;
typedef short s16int;
typedef unsigned short u16int;
typedef int s32int;
typedef unsigned int u32int;
typedef __int64_t s64int;
typedef __uint64_t u64int;

#ifndef NULL
#define NULL 0
#endif

#endif
